package com.barneyx.mshinfoplatform.entity.admin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.barneyx.mshinfoplatform.entity.CommonEntity;
import com.barneyx.mshinfoplatform.entity.enums.ELogType;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableCharset;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableEngine;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlCharsetConstant;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlEngineConstant;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName("msh_admin_log_list")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableEngine(MySqlEngineConstant.MyISAM)
@TableCharset(MySqlCharsetConstant.UTF8)
@ApiModel("管理员后台操作日志")
@Builder
public class AdminLogEntity extends CommonEntity {
    @TableId(value = "log_id", type = IdType.ASSIGN_ID)
    @Column(type = MySqlTypeConstant.BIGINT)
    private String LogId;


    @TableField("log_type")
    @Column(type = MySqlTypeConstant.TINYINT)
    private ELogType LogType;

    @TableField("log_content")
    @Column(type = MySqlTypeConstant.CHAR)
    private String LogContent;

    @TableField("admin_user_id")
    @Column(type = MySqlTypeConstant.BIGINT)
    private String AdminUserId;

}
